package aplicacao;


import javax.swing.JProgressBar;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Pessoal
 */
public class ThreadPB extends Thread {
   private JProgressBar pb;
   private timerProgresso t;
   
   public ThreadPB(JProgressBar progress){
     pb = progress;
     t = new timerProgresso(pb);
   }
   
   public ThreadPB(){
     t = new timerProgresso();
   }
   
   @Override
   public void run(){
     t.go();
   }
   
   public int getTime(){
     return timerProgresso.number;
   }
  
}
